package Vehicle;

public class SUV extends Vehicle {
	String wheelDrive;
	public SUV() {
		
	}
	public SUV(int noOfDoors, String brand, String wheelDrive) {
		super(noOfDoors, brand);
		if (wheelDrive.equals("rear")||wheelDrive.equals("front")||wheelDrive.equals("4")) {
			this.wheelDrive = wheelDrive;
		}else {
			this.wheelDrive ="rear";
			System.out.println("wrong input");
		}
		
	}

	public String getDrive() {
		return wheelDrive;
	}

	public void setDrive(String wheelDrive) {
		this.wheelDrive = wheelDrive;
	}
	
	

}
